import org.junit.jupiter.api.Test;

public class _28_实现strStr {
    @Test
    public void test(){
        String haystack = "hello", needle = "lls";
        System.out.println(haystack.contains(needle));
        System.out.println(haystack.indexOf(needle));


    }

    public int strStr(String haystack, String needle) {

        return haystack.indexOf(needle);

    }
}
